package day12.DuiXiang.XuLieHua;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Lian01 {
    public static void main(String[] args) throws IOException,ClassCastException {
        User user=new User("xiexie","123456");
        ObjectOutputStream oos=new ObjectOutputStream(new FileOutputStream("jinjie\\a.txt"));
        oos.writeObject(user);
        oos.close();
    }
}
